<?php
ini_set('display_errors', 'on');
@session_start();
if (!isset($_SESSION['user'])) {
	require 'login.php';
	exit();
}

$user = $_SESSION['user'];
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link rel="shortcut icon" href="./img/favicon.ico" />
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
		<link rel="icon" href="./img/favicon.ico" type="image/x-icon" />
		<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />
		<title>Wormhole</title>

		<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
		<script>
			var session_user_info = <?php echo json_encode($user)?>;
            if( session_user_info['avatar'] == 0 ) {
				session_user_info['avatar'] = "./img/noavatar_small.gif";
			}
		</script>
		<script src="js/common.js" type="text/javascript"></script>
		<script src="js/profile.js" type="text/javascript"></script>
	</head>
	<body>
        <div id="topBar"></div>
		
		<div id="content-container" class="rounded">

				<div id="news-container" class="section-padding">	
					
					<!--				
					<div class="msg-block">
						<div class="content">
							<div class="space-holder">You have new invitations, click to expand & check.</div>
							<ul>
								<li>Some invitation A</li>
								<li>Some invitation A</li>
								<li>Some invitation A</li>
							</ul>
						</div>
						
					</div>
					-->
					<div class="section-area"><h2>Top nebulas</h2></div>
					<div class="nebulas-block">
					</div>
					<div class="section-area"><h2>Top posts</h2></div>
					<div class="news-block">
						<ul>
						</ul>
					</div>
					
				</div>
				<div id="profile-container" class="section-padding">
						<div class="section-area"><h2>About you</h2></div>
						<div class="avatar-block">
							<div class="avatar">
								
							</div>
						</div>
						<div class="status-block">
						</div>
						<div class="section-area"><h2>Tagged nebula</h2></div>
						<div class="tagged-nebula">
							<div class="nebula">
								<ul>
								</ul>
							</div>
							<div class="showall"></div>
						</div>
						<div class="section-area"><h2>Recent posts</h2></div>
						<div class="recent-block">
								<ul id="recent-posts">
								</ul>
								<span style="text-align: right; font-size:12px;margin: 5px 5px 5px 0;">Show all</span>
						</div>
						<div class="section-area"><h2>Recent Galaxies</h2></div>
						<div class="recent-block">
								<ul id="recent-galaxies">
								</ul>
								<span style="text-align: right; font-size:12px;margin: 5px 5px 5px 0;">Show all</span>
						</div>
				</div>
		</div>
	</body>
</html>